<?php
// require "../src/Qiniu/Config.php";
// echo 'aaaa';exit;
// require "../src/Qiniu/functions.php";
// require "../src/Qiniu/Auth.php";
// require "../src/Qiniu/Http/Client.php";
// require "../src/Qiniu/Http/Response.php";
// require "../src/Qiniu/Http/Request.php";
// require "../src/Qiniu/Zone.php";

// require "../src/Qiniu/Storage/UploadManager.php";
// //require "../src/Qiniu/Storage/BucketManager.php";

 $accessKey = 'H9N6ZegIQ-cm2nIBHF9Gx4aBUK2dMUCj2zlgH4J6';
 $secretKey = 'uHzZsPd4Xds_hw1xaMixtOjOk2Ok_5iMtIZ7xJoA';

//初始化Auth状态：
$auth = new Auth($accessKey, $secretKey);

//初始化BucketManager
$bucketMgr = new BucketManager($auth);
//var_dump($bucketMgr);exit;
//删除$bucket 中的文件 $key
//echo $bucket, $key;exit;
$qn_err = $bucketMgr->delete($bucket, $key);
//print_R($qn_err);exit;
echo "\n====> delete $key : \n";
if ($qn_err !== null) {

	//var_dump($qn_err);
} else {
    echo "Success!";
}
